home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / comm / yep16.zip / YX-13.ZIP / DATETIME.TXT < prev    next >
Text File  |  1996-02-21  |  2KB  |  57 lines

  1. DATETIME outputs a string with the current date and/or time and/or other
  2.          current date/time info.
  3.  
  4. Please run the dt-test.cmd to see an example of some of the output
  5. variations possible with DATETIME.
  6.  
  7. To operate DATETIME simply run it with a string (enclosed in double quotes)
  8. containing the various time/date substitution codes that DATETIME supports.
  9. For example, to output a based time and date the command might look so:
  10.  
  11.     DATETIME "It is now @d, at @t in the @i3"
  12.  
  13. The output for that might look like this:
  14.  
  15.     It is now Wednesday, February 21, 1996, at 3:06 pm in the afternoon.
  16.  
  17. Practical uses for DATETIME might be if you want to display the date and
  18. time in a particular format while running a batch file. Or perhaps more
  19. useful, if you want to log a particular date/time something happens to a
  20. file. To do this just redirect the output of DATETIME to a file.
  21.  
  22. DATETIME is extremely flexible in what I can output. The complete list of
  23. substitution codes can be obtained by running DATETIME /? which will give
  24. you this:
  25.  
  26. DATEFILE outputs a string with the current date and/or time
  27. formatted to your command line specifications. Please enter the
  28. command line with double quotation marks and any these of these:
  29.  
  30.  @d - the full date (Thursday, February 15, 1996)
  31.  @t - 12 time of day (9:34 pm)
  32.  
  33.  unit            no lead   ld zero   ld spce   Nth 
  34.  ----            -------   -------   -------   ----
  35.  month number  -   @m1       @m2       @m3     @m4 
  36.  day of month  -   @d1       @d2       @d3     @d4 
  37.  12 hour       -   @h1       @h2       @h3     @h4 
  38.  24 hour       -   @H1       @H2       @H3     @H4 
  39.  minute        -   @n1       @n2       @n3     @n4 
  40.  second        -   @s1       @s2       @s3     @s4 
  41.  hundredths    -   @u1       @u2       @u3     @u4 
  42.  day of year   -   @a1       @a2       @a3     @a4 
  43.  
  44.  @y - year    @y1 - 2 digit year 
  45.  @i - am/pm   @i1 - AM/PM   @i2 - Am/Pm   @i3 - morning/afternoon/evening
  46.  @M - month name    @M1 - 3 letters  @M2 - 2 letters
  47.  @W - weekday name  @W1 - 3 letters  @W2 - 2 letters  @W3 - num  @W4 - Nth
  48.  @p1 - % day gone    @p2 - % year gone  @t1 - tenth/Second
  49.  
  50. Use standard output redirection to output/append to a file.
  51. /n means don't output cr/lf at end.
  52.  
  53. example: DATETIME "It is now @t on @d." /n
  54.  
  55.  
  56. Questions/Comments to as544@torfree.net
  57.